//
//  MineController.h
//  iMine
//
//  Created by gaoxiang on 09-3-11.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "PreferencesController.h"
#import "GameEngine.h"
#import "MineView.h"
#import "CounterView.h"


@interface MineController : NSWindowController{
    IBOutlet MineView *mineView;
    IBOutlet CounterView *secondView;
    IBOutlet CounterView *remainView;
	IBOutlet NSButton *resetButton;
	GameEngine *gameEngine;
	NSPoint privLocation;
	BOOL dragging;
}

- (IBAction)newGame:(id)sender;
- (IBAction)setBeginner:(id)sender;
- (IBAction)setNovice:(id)sender;
- (IBAction)setExpert:(id)sender;
- (void)setLevel:(int)level;

- (IBAction)testMineField:(id)sender;


- (void)renderView:(BOOL)isResize;

@end
